package com.java.controller.admin;

import com.java.pojo.entity.LendReturn;
import com.java.result.Result;
import com.java.service.LendReturnService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "标的的投资")
@RestController
@RequestMapping("/admin/core/lendReturn")
public class AdminLendReturn {


    @Resource
    private LendReturnService lendReturnService;

    //还款计划
    @ApiOperation("还款计划")
    @GetMapping("/list/{lendId}")
    public Result payList(@PathVariable Long lendId){
        List<LendReturn> list = lendReturnService.selectByLendId(lendId);
        return Result.ok(list);
    }
}
